pkgname=threadweaver
pkgver=5.36.0
pkgrel=1
pkgdesc='High-level multithreading framework'
arch="all"
url='https://community.kde.org/Frameworks'
license="LGPL"
depends="qt5-qtbase"
makedepends="extra-cmake-modules mesa-dev doxygen qt5-qttools-dev"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"

prepare() {
	mkdir -p $srcdir/build
}

build() {
	cd $srcdir/build
	cmake "$srcdir"/${pkgname}-${pkgver} \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DKDE_INSTALL_LIBDIR=lib \
		-DBUILD_TESTING=OFF \
		-DBUILD_QCH=ON
	make
}

package() {
	cd $srcdir/build
	make DESTDIR="${pkgdir}" install
}

sha512sums="cf52bd157e8e3b19a579e1066648b8d2b9bd3b7c3b06caf448eae94219f7f2c5728fa41c150c3b5bc3c32c400e6ce4f5075fa53f7ccfa6f6dc5fd970edcb67a8  threadweaver-5.36.0.tar.xz"
